home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_02_03
/
2n03019b
< prev
next >
Wrap
Text File
|
1991-01-28
|
688b
|
27 lines
HWND ghWnd; /* handle to main window */
OMFHND ghOMF; /* handle to the OMF */
char gFile[MAXROOTFILENAMELENGTH + 1];
/* gFile is the file name supplied by NewWave for data. It is arbitrary */
int PASCAL WinMain( hInstance, hPrevInstance, lpszCmdLine, cmdShow)
HANDLE hInstance,
hPrevInstance;
LPSTR lpszCmdLine;
int cmdShow;
{
...
/* class create if needed */
...
ghWnd = CreateMainWindow( hInstance); /* call function to create main window */
/* NOTE: CreateMainWindow will be defined further down */
ghOMF = ghOMF( ghWnd, lpszCmdLine, (LPSTR) gFile);
...
/* message loop (while GetMessage) */
...
return( 0);
} /* end of example code fragment */